import request from '@/utils/request'

// 查询农作物种植列表
export function listCropper(query) {
  return request({
    url: '/device/cropper/list',
    method: 'get',
    params: query
  })
}

// 查询农作物种植详细
export function getCropper(id) {
  return request({
    url: '/device/cropper/' + id,
    method: 'get'
  })
}

// 新增农作物种植
export function addCropper(data) {
  return request({
    url: '/device/cropper',
    method: 'post',
    data: data
  })
}

// 修改农作物种植
export function updateCropper(data) {
  return request({
    url: '/device/cropper',
    method: 'put',
    data: data
  })
}

// 删除农作物种植
export function delCropper(id) {
  return request({
    url: '/device/cropper/' + id,
    method: 'delete'
  })
}
